package com.hulman.oms.dao;

import com.hulman.oms.bean.RunLog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: maxwellens
 */
@Mapper
public interface RunLogDao
{
    List<RunLog> findRunLogs(Map<String, Object> map);

    Integer findRunLogsCount(Map<String, Object> map);

    RunLog findRunLogById(Integer id);

    int insertRunLog(RunLog runLog);

    void deleteRunLogById(Integer id);

    void deleteRunLogs(int[] ids);

    int updateRunLog(RunLog runLog);

    RunLog findLatestRunLog();
}
